#ifndef ADDPATIENTUI_H
#define ADDPATIENTUI_H

#include <QWidget>
#include "BaseWidget.h"
#include "WidgetId.h"
#include "AppLog.h"

namespace Ui {
class AddPatientUi;
}

class AddPatientUi : public BaseWidget
{
    Q_OBJECT

public:
    explicit AddPatientUi(QWidget *parent = nullptr);
    ~AddPatientUi()override;
    void activate()override;
    void inactivate()override;

protected:
    void changeEvent(QEvent* e)override;

private slots:
    void on_gohome_clicked();

    void on_goback_clicked();

    void on_add_clicked();

    void on_applay_clicked();

private:
    Ui::AddPatientUi *ui;
    int g_freeNumber;
    int addOnePatientInfo();
    int checkInfo();
};

#endif // ADDPATIENTUI_H
